package com.ambimmort.shj.action.user;

import com.ambimmort.shj.service.user.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by Administrator on 2015/7/31.
 */
@Controller("/action/user/edit.do")
public class Edit {
    @Autowired
    private UserService userService;

    /**
     *
     * @param request
     * @param response
     * @param json
     * @return
     * @throws IOException
     * @throws IOException
     */
    @RequestMapping("/action/user/edit.do")
    @ResponseBody
    public String action_UserEdit(HttpServletRequest request, HttpServletResponse response,@RequestParam("json") String json)  {

            return  userService.editDomain(json);
    }
}
